<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  window.onkeydown = function (e) {
    console.log('window.onkeydown---:', e);
    console.log('e.keyCode:',e.keyCode);
    console.log('e.code:',e.code);
    const data = {
      keyCode: e.keyCode,
      shift: e.shiftKey,
      meta: e.metaKey,
      control: e.ctrlKey,
      alt: e.altKey
    };
    console.log('要发送给傀儡端robot响应的数据为 ---> data:', data, true);

    e.stopPropagation();
    e.preventDefault();
  }

</script>
</body>
</html>
